<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" errorPage="/error.jsp" isELIgnored="false" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.opensymphony.com/oscache" prefix="cache" %>
<%@ taglib uri="http://atleap.blandware.com/taglib" prefix="atleap" %>
<html:xhtml />

<atleap:constants className="com.blandware.atleap.webapp.util.testimonials.TestimonialModuleWebConstants" var="TESTIMONIALS_COLLECTION_KEY" />
<atleap:constants className="com.blandware.atleap.webapp.util.testimonials.TestimonialModuleWebConstants" var="TESTIMONIAL_COLLECTION_GRID" />
<atleap:constants className="com.blandware.atleap.webapp.util.core.WebappConstants" var="GRID_PAGE_SIZE" />
<atleap:globalProperty name="${pageScope.GRID_PAGE_SIZE}" defaultValue="10" type="integer" var="pageSize" />
<atleap:grid name="${pageScope.TESTIMONIAL_COLLECTION_GRID}" pageSize="${pageSize}">
	<table cellpadding="0" cellspacing="0" border="0" class="tableView">
		<atleap:rowsIterator var="testimonial" collection="${requestScope[pageScope.TESTIMONIALS_COLLECTION_KEY]}">
			<tr>
				<td>
					<atleap:edit action="/testimonials/callUpdateTestimonial?id=${testimonial.id}">
						<div>
                            <atleap:fieldValue valueMap="${testimonial.body}" complexSearch="true" filter="false" />
                            <atleap:fieldValue valueMap="${testimonial.title}" complexSearch="true" filter="true" />
						</div>
					</atleap:edit>
				</td>
			</tr>
		</atleap:rowsIterator>
	</table>
	<atleap:noRows>
		<div>
			<em><atleap:message key="core.commons.nothingToShow"/></em>
		</div>
	</atleap:noRows>
	<atleap:pager pageCount="10">
		<div>
			<atleap:message key="core.grid.pager.title" />&nbsp;
			<atleap:firstPage><img src="<atleap:rewriteUrl href="/images/theme/${appConfig['frontendCssTheme']}/first.gif" />" border="0" alt="<atleap:message key="core.grid.pager.first"/>" title="<atleap:message key="core.grid.pager.first"/>" /></atleap:firstPage>
			<atleap:prevPage><img src="<atleap:rewriteUrl href="/images/theme/${appConfig['frontendCssTheme']}/prev.gif" />" border="0" alt="<atleap:message key="core.grid.pager.prev"/>" title="<atleap:message key="core.grid.pager.prev"/>" /></atleap:prevPage>
			<atleap:pagesIterator>
				<atleap:page>${pageNumber}&nbsp;</atleap:page>
				<atleap:currentPage><b>${pageNumber}</b>&nbsp;</atleap:currentPage>
			</atleap:pagesIterator>
			<atleap:nextPage><img src="<atleap:rewriteUrl href="/images/theme/${appConfig['frontendCssTheme']}/next.gif" />" border="0" alt="<atleap:message key="core.grid.pager.next"/>" title="<atleap:message key="core.grid.pager.next"/>" /></atleap:nextPage>
			<atleap:lastPage><img src="<atleap:rewriteUrl href="/images/theme/${appConfig['frontendCssTheme']}/last.gif" />" border="0" alt="<atleap:message key="core.grid.pager.last"/>" title="<atleap:message key="core.grid.pager.last"/>" /></atleap:lastPage>
		</div>
	</atleap:pager>
</atleap:grid>


